<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul,li{
            list-style: none;
        }
        ul{
            width: 640px;
            height: 280px;
            margin: 50px auto;
            overflow: hidden;

            display: flex;
        }
        ul li{
            width: 160px;
        }
    </style>
</head>
<body>
    <!-- ul>li*4>img[src=./img/0$.jpg] -->
    <!-- ul>li{11111$.pgn}*4 -->
    <ul>
        <li><img src="./img/01.jpg" alt=""></li>
        <li><img src="./img/02.jpg" alt=""></li>
        <li><img src="./img/03.jpg" alt=""></li>
        <li><img src="./img/04.jpg" alt=""></li>
    </ul>
    <script src="./js/jquery.min.js"></script>
    <script>
        /* 
            默认状态下都是160px
            当我移入的时候,那么那个li为580px,兄弟li是20px
        */
        //鼠标移入到Li上面来
        $("ul li").mouseover(function(){
            $(this).stop().animate({'width':'580px'},50)
            $(this).siblings().animate({width:'20px'},50)
        })
        $("ul li").mouseleave(function(){
            $("ul li").stop().animate({width:'160px'},50)
        })
    </script>
</body>
</html>